<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>登录</title>
    <link type="text/css" rel="stylesheet" href="<%=basePath%>statics/css/login.css"/>
    <script type="text/javascript" src="<%=basePath %>statics/js/plug/jquery-1.12.0.min.js"></script>
    <script type="text/javascript" src="<%=basePath %>statics/js/plug/jquery.validate.js"></script>
    <script type="text/javascript" src="<%=basePath %>statics/js/common/common-1.0.js"></script>
    <script type="text/javascript" src="<%=basePath %>statics/js/login.js"></script>
</head>
<body>

<div class="login-bg-top"></div>
<div class="login-bg-bottom"></div>

<div class="login-form">
    <div class="login-logo"></div>
    <div class="login-title"></div>
    <div class="login-content">
        <form id="loginForm" action="login" method="post">
            <div class="login-error">
                <span id="loginError">${userMessage}</span>
            </div>
            <div class="login-input">
                <i class="login-icon icon-username"></i>
                <input id="username" name="username" type="text" placeholder="请输入用户名" value="${username }">
                <span id="username-error" class="error-message"></span>
            </div>
            <div class="login-input">
                <i class="login-icon icon-password"></i>
                <input id="password" name="password" type="password" placeholder="请输入密码">
                <span id="password-error" class="error-message"></span>
            </div>
            <div class="login-input login-code">
                <i class="login-icon icon-code"></i>
                <input type="text" id="kaptchaCode" name="kaptchaCode" placeholder="请输入验证码" style="width: 220px;">
                <img id="kaptchaCodeImg" alt="验证码" title="点击更换" src="<%=basePath%>kaptcha.jpg">
                <span id="kaptchaCode-error" class="error-message" style="right: -81px"></span>
            </div>
            <div class="login-rember" style="display: none">
                <input type="checkbox" id="rememberMe" name="rememberMe" checked="checked">
                <span>下次自动登录</span>
                <a>忘记密码？</a>
            </div>
            <div class="login-button"><span>登录</span></div>
        </form>
    </div>
</div>


</body>
</html>